package com.gec.service;

import java.sql.SQLException;

import com.gec.dao.UserDao;
import com.gec.entity.User;

public class UserService {
	UserDao userDao = new UserDao();
	public User login (String username,String password) throws SQLException {
		User user = userDao.findUserBUsernameAndPassword(username, password);
		return user;
		
	}
}
